home *** CD-ROM | disk | FTP | other *** search
-
- {askyn - ask yes/no question, set errorlevel=1 if yes, 0 if no}
- {s.h.smith, 1-feb-87}
-
- {$g1,p1}
-
- var
- i: integer;
- ans: char;
-
- begin
-
- write(paramstr(1));
- for i := 2 to paramcount do
- write(' ',paramstr(i));
-
- write('? (Y/N) ');
-
- repeat
- read(kbd,ans);
- ans := upcase(ans);
- until (ans = 'Y') or (ans = 'N');
-
- writeln(ans);
-
- if ans = 'Y' then
- halt(1)
- else
- halt(0);
- end.
-